package com.my.dao;

import java.math.BigInteger;
import java.util.List;

import com.my.bean.User;

public interface UserDAO {

	boolean addUser(User user) throws Exception;

	boolean editUser(User user) throws Exception;

	User getUserById(Class<User> c, Integer id) throws Exception;

	boolean removeUser(Integer id) throws Exception;

	BigInteger getTotalUserRecords() throws Exception;

	List<User> getAllUserByPage(int pageindex, int pagesize) throws Exception;

	BigInteger searchTotalUserRecords(User user) throws Exception;

	List<User> searchUserByPage(int pageindex, int pagesize, User user)
			throws Exception;
}
